import configparser

import os

from common.project_path import project_path


class ReadConfig:

    def read_config(self,file_path,section,option):

        cf = configparser.ConfigParser()
        cf.read(file_path)

        return cf[section][option]



if __name__ == '__main__':

    print(ReadConfig().read_config(os.path.join(project_path,"conf","config.ini"),"DB", "db_config"))